package org.infosec.lc.exercises.esper.listener;

import com.espertech.esper.client.EventBean;
import com.espertech.esper.client.UpdateListener;

/**
	文件名：SimpleListener.java
	作  者：林超
	时  间：2011-6-22下午02:46:32

	功能描述：简单的事件监听
	
	pom.xml	:
			
 */
public class SimpleEspListener implements UpdateListener {

	public void update(EventBean[] newEvents, EventBean[] oldEvents) {
		EventBean eb = newEvents[0];  
        System.out.println(eb.get("avgRank")); 
//		System.out.println(eb.get("threatrank")); 
		System.out.println(eb.get("countPerType")); 
//		System.out.println(eb.get("type"));
		System.out.println(newEvents.length);
//		
		System.out.println(System.currentTimeMillis());
	}
}

